package com.cy.pj.module.pojo;

public class ResponseResult {
    private Integer state = 1;
    private String massage="ok";
    private Object data;

    public ResponseResult(String massage){
        this.massage = massage;
    }
    public ResponseResult(Object data){
        this.data = data;
    }
    public ResponseResult(Throwable e){
        this.state = 0;
        this.massage = e.getMessage();
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getState() {
        return state;
    }

    public String getMassage() {
        return massage;
    }

    public Object getData() {
        return data;
    }
}
